package cn.wolfcode.ssm.service;

import cn.wolfcode.ssm.domain.Employee;
import cn.wolfcode.ssm.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {

    void deleteById(Long id);

    void save(Employee record,Long[] ids);

    Employee selectById(Long id);

    void updateById(Employee record,Long[] ids);

    List<Employee> listAll();

    PageInfo<Employee> query(EmployeeQueryObject qo);

    Employee login(String username,String password);

    Employee checkUsername(String username);

    Workbook exportXls(EmployeeQueryObject qo);

    String importXls(MultipartFile file, String password) throws IOException;

    void updateForStatus(Long id);
}
